package cate.common.table.activity.dungeonup;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass(value = "钥匙分布")
public class DUKeyRow extends ERow {
    @NoteField(value = "钥匙")
    public int keyName;
    @NoteField(value = "数量")
    public int num;
    @NoteField(value = "层数下限")
    public int lowerBound;
    @NoteField(value = "层数上限")
    public int upperBound;
    @NoteField(value = "羊皮卷数量")
    public int predictionNum;
    @NoteField(value = "羊皮纸前置层数")
    public int predictionBefore;
    @NoteField(value = "活动配置ID")
    public int configID;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("ID");
        this.keyName = xrw.getInteger("钥匙",33);
        this.num = xrw.getInteger("数量", 0);
        this.lowerBound = xrw.getInteger("层数下限", 1);
        this.upperBound = xrw.getInteger("层数上限", 1);
        this.predictionNum = xrw.getInteger("羊皮卷数量", 0);
        this.predictionBefore = xrw.getInteger("羊皮卷前置层数", 5);
        this.configID = xrw.getInteger("活动配置ID");
    }
}
